#include "gtrans.h"
#include "connexionbdd.h"
#include <QApplication>

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);

    QCoreApplication::setOrganizationName("AEENSAMANGERS");
    QCoreApplication::setOrganizationDomain("AEENSAMANGERS.com");
    QCoreApplication::setApplicationName("ostofub");


    // Connexion à la base
    int idConnexion = ConnexionBDD::connexion(0,"Tonton");

    if(idConnexion < 0){
        QMessageBox::warning(0,"Erreur","Connexion impossible");
        return 0;

    }

    GTrans w("user",idConnexion);
    w.show();

    return a.exec();
}
